package com.dmtt.web.controller;

import com.dmtt.util.R;
import com.dmtt.web.entity.Agv;
import com.dmtt.web.entity.AgvInfoVo;
import com.dmtt.web.service.AgvInfoService;

import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;
import java.util.List;
import java.util.ListResourceBundle;


@RestController
@RequestMapping("/maintenance")
public class AgvInfoController {

    @Autowired
    private AgvInfoService agvInfoService;

    //查询agv小车信息
    @RequestMapping("/agvInfo")
    public R agvInfo(@RequestBody AgvInfoVo agvInfoVo){
        List<AgvInfoVo> list = agvInfoService.getAgvInfo(agvInfoVo);
        return R.ok().put("list",list);
    }

}
